package com.cuijq.sms.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author by CuiJQ
 * @Classname ConstantSmsUtils
 * @Description ConstantSmsUtils Description
 * @Date 2021/6/21 14:48
 */
public class ConstantSmsUtils implements InitializingBean {

  @Value("${aliyun.sms.keyid}")
  private String keyid;

  @Value("${aliyun.sms.keysecret}")
  private String keysecret;

  public static String ACCESS_KEY_SECRET;
  public static String ACCESS_KEY_ID;

  @Override
  public void afterPropertiesSet() throws Exception {
    ACCESS_KEY_ID = keyid;
    ACCESS_KEY_SECRET = keysecret;
  }
}
